<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  更新
@author ${author}
@since 2021-04-07 14:34:31
-->

	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="modifyForm">

									<input type="hidden" name="id" th:value="${bean.id}" />
									
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">教师名称 </label>
	<div class="col-md-9">
				<input class="form-control" id="teacherName" type="text" th:value="${ bean.teacherName}" name="teacherName" placeholder="教师名称">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">教师编号 </label>
	<div class="col-md-9">
				<input class="form-control" id="teacherNumber" type="text" th:value="${ bean.teacherNumber}" name="teacherNumber" placeholder="教师编号">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">所在学院 </label>
	<div class="col-md-9">
				<input class="form-control" id="collegeId" type="text" th:value="${ bean.collegeId}" name="collegeId" placeholder="所在学院">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">所教班级 </label>
	<div class="col-md-9">
				<input class="form-control" id="classId" type="text" th:value="${ bean.classId}" name="classId" placeholder="所教班级">
			</div>
</div>
																				</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var modifyForm = $("#modifyForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
teacherName: {required:true}
,teacherNumber: {required:true}
,collegeId: {required:true}
,classId: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("modifyForm");
			if(result){	
				var modifyUrl = ctx+"alinesno/student/demo/wfj01/learnTeacher/update" ;
				$.operate.save(modifyUrl , modifyForm.serialize());
			}
	    }
	</script>
</body>
</html>
